package components

import (
	"fmt"
)

var EsClient Elastic
var EsClientPrd Elastic

func InitEs(ips ...string) {
	err := EsClient.New(ips...)
	fmt.Println(ips)
	if err != nil {
		fmt.Println("err: ", err)
	}
	//err = EsClientPrd.New("http://localhost:9200")
	//if err != nil {
	//	fmt.Println("es prd err: ", err)
	//}
}

func InitEsPrd(ips ...string) {
	err := EsClientPrd.New(ips...)
	fmt.Println(ips)
	if err != nil {
		fmt.Println("err: ", err)
	}
}
